package service.impl;

import dao.SupplierDao;
import entity.Supplier;
import org.springframework.stereotype.Service;
import service.SupplierService;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service("supplierService")
public class Supplierimpl implements SupplierService {

    @Resource(name="supplierDao")
    private SupplierDao supplierDao;

    @Override
    public List<Supplier> list() {
        return supplierDao.list();
    }

    @Override
    public List<Supplier> Qlist(Map<String, Object> map) {
        return supplierDao.Qlist(map);
    }


    @Override
    public int Qadd(Supplier supplier) {
        return supplierDao.Qadd(supplier);
    }

    @Override
    public int Qupd(Supplier supplier) {
        return supplierDao.Qupd(supplier);
    }

    @Override
    public int Qdel(Supplier supplier) {
        return supplierDao.Qdel(supplier);
    }

}
